/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package model;


/**
 * 课程：课程名、学分
 * @author 乐山
 */
public class Course {
    private String name;
    private Double credit;

    public Course() {
    }

    public Course(String name, Double credit) {
        this.name = name;
        this.credit = credit;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getCredit() {
        return credit;
    }

    public void setCredit(Double credit) {
        this.credit = credit;
    }

    @Override
    public String toString() {
        return "Course{" + "name=" + name + ", credit=" + credit + '}';
    }
    
    
}
